Skip to content

Add Delegate interface for OlpClient#1709

Merged
diachenko-mischa merged 1 commit into
heremaps:masterfrom
VladyslavTsymbal:HERESDK-12772
Jul 14, 2026
Merged

Add Delegate interface for OlpClient#1709
diachenko-mischa merged 1 commit into
heremaps:masterfrom
VladyslavTsymbal:HERESDK-12772

Conversation

@VladyslavTsymbal

Copy link
Copy Markdown
Contributor

Added a delegate interface for OlpClient to allow for better testing and mocking of the client behavior. Implemented a mock version of the delegate to facilitate unit tests. Solves the issue of testing OlpClient without relying on actual network calls.

Relates-To: HERESDK-12772

@VladyslavTsymbal VladyslavTsymbal force-pushed the HERESDK-12772 branch 2 times, most recently from a43fe9a to f075bc2 Compare July 13, 2026 15:27
@VladyslavTsymbal VladyslavTsymbal changed the title Add Delegate interface for OlpClient and implement mock for testing Add Delegate interface for OlpClient Jul 13, 2026
Comment thread olp-cpp-sdk-core/tests/client/OlpClientTest.cpp Outdated
@codecov

codecov Bot commented Jul 13, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.87500% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 80.33%. Comparing base (8ce8ddc) to head (91bbb0c).

Files with missing lines Patch % Lines
olp-cpp-sdk-core/src/client/OlpClient.cpp 96.77% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1709      +/-   ##
==========================================
+ Coverage   80.30%   80.33%   +0.03%     
==========================================
  Files         356      356              
  Lines       14285    14297      +12     
  Branches     1564     1564              
==========================================
+ Hits        11471    11485      +14     
  Misses       2182     2182              
+ Partials      632      630       -2     
Files with missing lines Coverage Δ
...p-cpp-sdk-core/include/olp/core/client/OlpClient.h 100.00% <100.00%> (ø)
olp-cpp-sdk-core/src/client/OlpClient.cpp 89.11% <96.77%> (+0.35%) ⬆️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@andrey-kashcheev

Copy link
Copy Markdown
Collaborator

@VladyslavTsymbal CI still failing on this change

Added a delegate interface for OlpClient to allow for better testing
and mocking of the client behavior. Implemented a mock version of the
delegate to facilitate unit tests. Solves the issue of testing OlpClient
without relying on actual network calls.

Relates-To: HERESDK-12772

Signed-off-by: Vladyslav Tsymbal <ext-vladyslav.tsymbal@here.com>

@rustam-gamidov-here rustam-gamidov-here left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please doublecheck that copyright headers are update

@VladyslavTsymbal

Copy link
Copy Markdown
Contributor Author

please doublecheck that copyright headers are update

Is it can done in the follow-up MR?

@diachenko-mischa diachenko-mischa merged commit 81a7cee into heremaps:master Jul 14, 2026
48 of 49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants